import React from 'react';
// import {Text, View,} from 'react-native';
import {Redirect, withRouter} from 'react-router-native';

class Home extends React.Component{
  render(){
    const {location} = this.props.history;
    
    if (location.pathname === '/') {
      return(<Redirect to="/home" />)
    }
    return null;
  }
}

export default withRouter(Home);